home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / ARMTEX / SOURCES2 / !TeX / texmf / source / armTeX / web / tangle / ch-riscos < prev    next >
Encoding:
Text File  |  1998-04-04  |  1.4 KB  |  69 lines

  1. Changes to tangle for RISC OS compilation
  2. These changes should be applied after the wec2c change file
  3.  
  4. @x
  5. @ @<Set up null...@>=
  6. begin
  7.         chg_name[1]:='/';
  8.         chg_name[2]:='d';
  9.         chg_name[3]:='e';
  10.         chg_name[4]:='v';
  11.         chg_name[5]:='/';
  12.         chg_name[6]:='n';
  13.         chg_name[7]:='u';
  14.         chg_name[8]:='l';
  15.         chg_name[9]:='l';
  16.         chg_name[10]:=' ';
  17. end
  18. @y
  19. @ @<Set up null...@>=
  20. begin
  21.         chg_name[1]:='n';
  22.         chg_name[2]:='u';
  23.         chg_name[3]:='l';
  24.         chg_name[4]:='l';
  25.         chg_name[5]:=':';
  26.         chg_name[6]:=' ';
  27. end
  28. @z
  29.  
  30.  
  31. @x
  32. @ There are no flags currently used by \.{TANGLE}, but this module can be
  33. used as a hook to introduce flags.
  34.  
  35. @<Handle flag...@>=
  36. begin
  37.   @<Print usage error message and quit@>;
  38. end
  39.  
  40. @ @<Print usage error message and quit@>=
  41. begin
  42.   print_ln ('Usage: tangle webfile[.web] [changefile[.ch]].');
  43.   uexit (1);
  44. end
  45. @y
  46. @ We accept alternate names for the output files via \.{-o} and \.{-p}
  47. flags.
  48.  
  49. @<Handle flag...@>=
  50. begin
  51.   if fname[2] = 'o' then begin
  52.     incr(a);
  53.     argv(a,pascal_file_name);
  54.   end
  55.   else if fname[2] = 'p' then begin
  56.     incr(a);
  57.     argv(a,pool_file_name);
  58.   end
  59.   else
  60.     @<Print usage error message and quit@>;
  61. end
  62.  
  63. @ @<Print usage error message and quit@>=
  64. begin
  65.   print_ln ('Usage: tangle webfile[.web] [changefile[.ch]] [-o file] [-p poolfile]');
  66.   uexit (1);
  67. end
  68. @z
  69.